package com.springboot.springboot_demo02.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@Data
@PropertySource("classpath:test.properties")
@ConfigurationProperties(prefix = "test")
public class Article {
 /*  @Value("100")*/
private Integer id;
   /*@Value("Mybatis")*/
private String title;
 /*  @Value("mybatis 非常nice")*/
private String content;
}
